import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../view/Home'
import Cart from '../view/Cart'
import Friends from '../view/Friends'
import Search from '../view/Search'

Vue.use(VueRouter)

const routes = [
  {
    path: '/home',
    component: Home
  },
  {
    path: '/cart',
    component: Cart
  },
  {
    path: '/friends',
    component: Friends
  },
  {
    path: '/search',
    component: Search
  }

]

const router = new VueRouter({
  routes
})

export default router
